<template>
    <div>
        <CommonContainer title="资料补充记录">
            <el-table
                :data="addData"
                :header-cell-style="{ background: '#FAFAFA', color: '#000000' }" border>
                <el-table-column
                    align="center"
                    prop="fileName"
                    label="补充资料"
                    min-width="120">
                </el-table-column>
                <el-table-column
                    align="center"
                    prop="createBy"
                    label="创建人"
                    min-width="120">
                </el-table-column>
                <el-table-column
                    align="center"
                    prop="createTime"
                    label="创建时间"
                    min-width="120">
                </el-table-column>
                <el-table-column
                    align="center"
                    prop="status"
                    label="状态"
                    min-width="120">
                    <template v-slot="{row}">
                        {{ row.status == 1 ? '已提交' : '待提交' }}
                    </template>
                </el-table-column>
                <el-table-column
                    align="center"
                    label="操作"
                    min-width="120"
                    fixed="left"
                >
                    <template v-slot="{row}">
                        <e-button v-if="row.status ==1" size="mini" type="text" @click="additionFileOpertion(row)"
                        >查看
                        </e-button>
                        <span v-else>--</span>
                    </template>
                </el-table-column>
            </el-table>
        </CommonContainer>
        <!--查看-->
        <ReplenishFilesEcho ref="replenishFilesEcho"></ReplenishFilesEcho>
    </div>
</template>

<script>

import ReplenishFiles from "@/views/letterReview/order/components/ReplenishFiles.vue";
import ReplenishFilesEcho from "@/views/letterReview/order/components/ReplenishFilesEcho.vue";

export default {
    components: {ReplenishFilesEcho, ReplenishFiles},
    props: {
        addData: {
            type: Object,
            default: () => {
                return {}
            }
        }
    },
    data() {
        // 这里存放数据
        return {}
    },
    computed: {},
    // 方法集合
    methods: {
        additionFileOpertion(row) {
            this.$refs.replenishFilesEcho.show(row.id)
        }
    },
    // 生命周期 - 挂载完成（可以访问 DOM 元素）
    mounted() {
    },

}
</script>

<style lang="scss" scoped>
.subTitle {
    font-size: 14px;
    font-weight: 500;
    color: #464646;
}
</style>
